#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>
#include <QWidget>
#include <QHBoxLayout>
#include <QComboBox>
#include <QVBoxLayout>
#include <QPushButton>
#include <QTextEdit>
#include <QTextStream>
#include <QString>
#include <QStringList>
#include <QFileDialog>

class MainWindow : public QMainWindow
{
    Q_OBJECT

public:
    MainWindow(QWidget *parent = 0);
    QWidget * cwidget;
    QVBoxLayout * clayout;
    QHBoxLayout * toplay;
    QHBoxLayout * botlay;
    QString curdir;
    QString fname;
    QComboBox * tbox;
    QString curfile;
    QPushButton * tbutton;
    QTextEdit * textEdit;
    QPushButton * botclose;
    QPushButton * botsave;
    ~MainWindow();

public slots:
    void open();
    void loadfile(const QString &filename);
    void savefile();

private:
    void createinterface();
};

#endif // MAINWINDOW_H
